package com.sanery.service.impl;

import java.util.List;

import com.sanery.dao.UserDao;
import com.sanery.dao.impl.UserDaoImpl;
import com.sanery.service.UserService;

public class UserServiceImpl implements UserService {

	@Override
	public Integer checkUserName(String username) {
		UserDao dao = new UserDaoImpl();
		Integer count = dao.getCommendUserName(username);
		return count;
	}

	@Override
	public List<String> recommendSchool(String school) {
		UserDao dao = new UserDaoImpl();
		List<String> list = dao.getCommendSchool(school);
		return list;
	}

	@Override
	public List<String> getProvince() {
		UserDao dao = new UserDaoImpl();
		List<String> list = dao.getProvince();
		return list;
	}

	@Override
	public List<String> getCity(String province) {
		UserDao dao = new UserDaoImpl();
		List<String> list = dao.getCity(province);
		return list;
	}

}
